import VueRouter from 'vue-router'
import HomeContainer from '../src/compents/tabbar/HomeContainer.vue'
import MemberContainer from '../src/compents/tabbar/MemberContainer.vue'
import SearchContainer from '../src/compents/tabbar/SearchContainer.vue'
import ShopcarContainer from '../src/compents/tabbar/ShopcarContainer.vue'
import NewslistContainer from '../src/compents/news/NewslistContainer.vue'
import NewsInfoContainer from '../src/compents/news/NewInfoContainer.vue'
import PhotoList from '../src/compents/photos/PhotoList.vue'
import Photoinfo from '../src/compents/photos/Photoinfo.vue'
import goodsList from '../src/compents/goods/goodsList.vue'
import goodsInfo from '../src/compents/goods/goodsinfo.vue'
import goodDesc from '../src/compents/goods/goodsDesc.vue'
import goodsComment from '../src/compents/goods/goodsComment.vue'
var routes=[
    {path:'/',redirect:'/home'},
    {path:'/home',component:HomeContainer},
    {path:'/member',component:MemberContainer},
    {path:'/shopcar',component:ShopcarContainer},
    {path:'/search',component:SearchContainer},
    {path:'/home/newslist',component:NewslistContainer},
    {path:'/home/newsInfo/:id',component:NewsInfoContainer},
    {path:'/home/photolist',component:PhotoList},
    {path:'/home/photoinfo/:id',component:Photoinfo},
    {path:'/home/goodslist',component:goodsList},
    {path:'/home/goodsinfo/:id',component:goodsInfo,name:"goodsinfo"},
    {path:'/home/goodsdesc/:id',component:goodDesc,name:"goodsdesc"},
    {path:'/home/goodscomment/:id',component:goodsComment,name:"goodscomment"}
   
    

]
const router = new VueRouter({
    routes,
    linkActiveClass:'mui-active'
})

export default router